package com.linshengjian.snowball.signal.model;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Accessors(chain = true)
@Setter
@Getter
public class Signal {

    public enum Target {
        Platform("平台"), Notice("公告"), Directional("定向");

        private String value;

        Target(String value) {
            this.value = value;
        }

        public String value() {
            return value;
        }
    }

    public String method; // 信号处理方式
    public Target targetType; // 推送目标类型
    public List<? extends Serializable> targetObj; // 目标对象
}
